import request from '@/utils/request'

// 查询错题列表
export function listWrongquestion(query) {
  return request({
    url: '/wjq/wrongquestion/list',
    method: 'get',
    params: query
  })
}

// 查询错题详细
export function getWrongquestion(id) {
  return request({
    url: '/wjq/wrongquestion/' + id,
    method: 'get'
  })
}

// 新增错题
export function addWrongquestion(data) {
  return request({
    url: '/wjq/wrongquestion',
    method: 'post',
    data: data
  })
}

// 修改错题
export function updateWrongquestion(data) {
  return request({
    url: '/wjq/wrongquestion',
    method: 'put',
    data: data
  })
}

// 删除错题
export function delWrongquestion(id) {
  return request({
    url: '/wjq/wrongquestion/' + id,
    method: 'delete'
  })
}
